package com.jintian.smart.base.api.system.entity;

import com.jintian.smart.kernel.core.domain.IEntity;
import lombok.Data;
import org.beetl.sql.annotation.builder.FillStrategy;
import org.beetl.sql.annotation.builder.UpdateTime;
import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 部门实体类
 */
@Data
@Table(name = "sys_department")
public class DepartmentEntity implements IEntity {
    /**
     * 主键id
     */
    @AssignID("snowid")
    private Long departmentId;

    /**
     * 部门名称
     */
    private String departmentName;

    /**
     * 负责人员工 id
     */
    private Long managerId;

    /**
     * 部门父级id
     */
    private Long parentId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 更新时间
     */
    @UpdateTime(FillStrategy.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @UpdateTime(FillStrategy.INSERT)
    private LocalDateTime createTime;
}
